package cn.edu.bjut.homework.chapter4;

public class Ipc extends Classification {

    public Ipc(char section, int class_num, char subclass, int main_group, int sub_group) {
        super(section, class_num, subclass, main_group, sub_group);
    }

    public Ipc(String s) {
        super(s);
    }

    @Override
    public String toString() {
        return String.format("%s%02d%s%4d/%-5d", section, class_num, subclass, main_group, sub_group);
    }
}